import request from '@/utils/request'

// 查询喊话参数配置列表
export function listAnnouncement(query) {
    return request({
        url: '/equipment/announcement/list',
        method: 'get',
        params: query
    })
}

// 查询喊话参数配置详细
export function getAnnouncement(id) {
    return request({
        url: '/equipment/announcement/' + id,
        method: 'get'
    })
}

// 新增喊话参数配置
export function addAnnouncement(data) {
    return request({
        url: '/equipment/announcement',
        method: 'post',
        data: data
    })
}

// 修改喊话参数配置
export function updateAnnouncement(data) {
    return request({
        url: '/equipment/announcement',
        method: 'put',
        data: data
    })
}

// 删除喊话参数配置
export function delAnnouncement(id) {
    return request({
        url: '/equipment/announcement/' + id,
        method: 'delete'
    })
}
